/*********************************************************************************
 * File Name: ScenarioTable.java
 * Package Name: com.sensorfriendly.provider.impl
 * 
 * Purpose:
 * A class the defines the schema of the Scenario Table
 *  
 *********************************************************************************/

package com.sensorfriendly.provider.impl;

import android.net.Uri;

import com.sensorfriendly.provider.TableSchema;

public class ScanarioTable extends TableSchema {
	
	private static final String TABLE_NAME = "sensor_friendly_scenario";

	// Base MIME type for the entity table.
	private static final String TABLE_TYPE = "vnd.en.sensor_friendly_scenario";

	public static final Uri CONTENT_URI = Uri.parse("content://"
			+ SensorFriendlyDBSchema.AUTHORITY + "/sensor_friendly_scenario");
	
	public static final String SORT_ORDER = "time_posted ASC";

	
	public static final String TIME_POSTED = "time_posted";
	public static final String ICON_FILE_NAME = "icon_file_name";
	public static final String SCENARIO_NAME = "name";

	
	private static final String[][] FIELDS = {{TIME_POSTED, "REAL"}, {ICON_FILE_NAME, "TEXT"},
		{SCENARIO_NAME, "TEXT"}
		};
	
	protected ScanarioTable() {
		super(TABLE_NAME, TABLE_TYPE, CONTENT_URI, SORT_ORDER, FIELDS);
	}
	
}
